package com.kevin.factory;

/**
 * 打折
 *
 * @author kevin
 * @date 2025/8/1
 */
public class CashRebate extends CashSuper{

    private double moneyRebate = 0.8d;

    public CashRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double acceptCash(double money) {
        return money * moneyRebate;
    }
}
